package com.atguigu.gulimall.product;

public class CreateThread02 {

    public static void main(String[] args) {
        System.out.println("main start...");
        new Thread(new Thread02()).start();
        System.out.println("main end...");
    }


    public static class Thread02 implements Runnable {
        @Override
        public void run() {
            System.out.println("当前线程：" + Thread.currentThread().getName());
            int i = 10 / 2;
            System.out.println("运行结果：" + i);
        }
    }
}
